package edu.wpi.cs509.ui.simulators;

import java.util.TimerTask;

import edu.wpi.cs509.ui.intfc.ClientLogicNotify;
import edu.wpi.cs509.ui.intfc.RulesInterface;

public class RulesNotify extends TimerTask {

	private RulesInterface rules;
	
	private ClientLogicNotify ui;
	
	public RulesNotify( ClientLogicNotify ui ) {
		this.ui = ui;
		
		rules = new Rules();
	}
	
	@Override
	public void run() {
		ui.notifyRulesPage(rules);
	}

}
